package com.qyhl.school.school.column.course.detail;


import com.qyhl.webtv.commonlib.entity.school.SchoolCourseDetailBean;

public class SchoolColumnCourseDetailPresenter implements SchoolColumnCourseDetailContract.SchoolColumnCourseDetailPresenter {
    private SchoolColumnCourseDetailContract.SchoolColumnCourseDetailView mView;
    private SchoolColumnCourseDetailModel mModel;

    public SchoolColumnCourseDetailPresenter(SchoolColumnCourseDetailContract.SchoolColumnCourseDetailView mView) {
        this.mView = mView;
        this.mModel = new SchoolColumnCourseDetailModel(this);
    }

    @Override
    public void getDetail(int albumId) {
        mModel.getDetail(albumId);
    }

    @Override
    public void setDetail(SchoolCourseDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
